package es.yell.wsdl.Sayc.YellAuthenticationSrv;

public class YellAuthenticationProxy implements es.yell.wsdl.Sayc.YellAuthenticationSrv.YellAuthentication {
  private String _endpoint = null;
  private es.yell.wsdl.Sayc.YellAuthenticationSrv.YellAuthentication yellAuthentication = null;
  
  public YellAuthenticationProxy() {
    _initYellAuthenticationProxy();
  }
  
  public YellAuthenticationProxy(String endpoint) {
    _endpoint = endpoint;
    _initYellAuthenticationProxy();
  }
  
  private void _initYellAuthenticationProxy() {
    try {
      yellAuthentication = (new es.yell.wsdl.Sayc.YellAuthenticationSrv.YellAuthenticationServiceLocator()).getYellAuthenticationPort();
      if (yellAuthentication != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)yellAuthentication)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)yellAuthentication)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (yellAuthentication != null)
      ((javax.xml.rpc.Stub)yellAuthentication)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public es.yell.wsdl.Sayc.YellAuthenticationSrv.YellAuthentication getYellAuthentication() {
    if (yellAuthentication == null)
      _initYellAuthenticationProxy();
    return yellAuthentication;
  }
  
  public es.yell.wsdl.Sayc.YellAuthenticationSrv.YellAuthenticateResponse yellAuthenticate(es.yell.wsdl.Sayc.YellAuthenticationSrv.YellAuthenticateRequest parameters) throws java.rmi.RemoteException, es.yell.schema.Global.WSException.WSExceptionType{
    if (yellAuthentication == null)
      _initYellAuthenticationProxy();
    return yellAuthentication.yellAuthenticate(parameters);
  }
  
  
}